import { right_judge_get } from "@/views/axios_api/api";

//常量的定义

export const config = {
  // 本地请求
  baseurl: 'http://127.0.0.1:8000/',
  // 七牛云
  qiniuurl: 'http://qakgy27pn.bkt.clouddn.com/',
  // 8080端口
  vueurl: 'http://127.0.0.1:8080/',
}

//函数的定义

export function formatXml(text) {
  return text
};

export function judge_right(right, args_hash, args){
  right_judge_get({'modal':right}).then(resp=>{
    if(resp.data){
      args_hash[args] = true
    }
  })
};

export function uuid4(){
  function S4() {
      return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
  }
  return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
}

